#!/usr/bin/env python
# -*- coding:utf-8 -*-
import time
from celery import Celery, shared_task

# pip install eventlet
# celery worker -A s1 -l info -P eventlet

@shared_task
def x2(x):
    return x
@shared_task
def x1(x, y):
    return x + y
app1 = Celery('auction', broker='redis://127.0.0.1:6379', backend='redis://127.0.0.1:6379')
# app = Celery('tasks',broker='redis://127.0.0.1:6379', backend='redis://127.0.0.1:6379')
# @app.task
# def x1(x, y):
#     return x + y